package com.hzya.frame.system.user.entity;

import com.hzya.frame.hr.company.entity.CompanyEntity;
import com.hzya.frame.hr.organization.entity.OrganizationEntity;
import com.hzya.frame.system.dictionaryshop.entity.DictionaryShopEntity;
import com.hzya.frame.system.module.entity.ModuleEntity;
import com.hzya.frame.system.role.entity.RoleEntity;
import com.hzya.frame.utils.core.annotation.Dictionary;
import com.hzya.frame.utils.core.entity.BaseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public class UserEntity extends BaseEntity {
	/** 显示名称 */
	private String view_name;
	/** 登录名 */
	private String login_name;
	/** 密码 */
	private String password;
	/** 员工ID */
	private Long staff_id;
	/** 头像路径 */
	private String icon_url;
	/*  头像上传文件**/
	private MultipartFile icon;
	/** 启用状态Y启用N停用 */
	@Dictionary(tab_name = "system_user", column_name = "state")
	private String state;
	/** 是否系统内置Y是N否 */
	private String built_in;
	@Dictionary(tab_name = "system_user", column_name = "built_in")
	private DictionaryShopEntity builtInEntity;
	/** 用户级别*/
	private String level ;
	/** 操作级别映射*/
	@Dictionary(tab_name = "system_module", column_name = "level")
	private DictionaryShopEntity levelEntity;
	/** 所属组织机构 */
	private Long org_id;
	/** 连接查询组织机构名称*/
	private String org_name;
	/** 连接查询创建人名称*/
	private String create_user_name;
	/** 企业会员ID */
	private Long company_org_id;
	/* 懒加载企业对象**/
	private CompanyEntity companyEntity;
	/* 懒加载组织机构对象**/
	private OrganizationEntity organizationEntity;
	/** 获取用户的模块列表 */
	private List<ModuleEntity> modulesList;
	/** 获取用户的角色 */
	private List<RoleEntity> rolesList;
	/* 用户角色id集合，新增时候使用**/
	private List<Long> rolesIdList;
	public MultipartFile getIcon() {
		return icon;
	}

	public void setIcon(MultipartFile icon) {
		this.icon = icon;
	}

	public List<Long> getRolesIdList() {
		return rolesIdList;
	}
	public CompanyEntity getCompanyEntity() {
		return companyEntity;
	}

	public void setCompanyEntity(CompanyEntity companyEntity) {
		this.companyEntity = companyEntity;
	}

	public void setRolesIdList(List<Long> rolesIdList) {
		this.rolesIdList = rolesIdList;
	}

	public DictionaryShopEntity getBuiltInEntity() {
		return builtInEntity;
	}

	public void setBuiltInEntity(DictionaryShopEntity builtInEntity) {
		this.builtInEntity = builtInEntity;
	}

	/** 显示名称 */
	public String getView_name() {
		return view_name;
	}

	/** 显示名称 */
	public void setView_name(String view_name) {
		this.view_name = view_name;
	}

	/** 登录名 */
	public String getLogin_name() {
		return login_name;
	}
	
	/** 登录名 */
	public void setLogin_name(String login_name) {
		this.login_name = login_name;
	}

	/** 密码 */
	public String getPassword() {
		return password;
	}

	/** 密码 */
	public void setPassword(String password) {
		this.password = password;
	}

	/** 员工ID */
	public Long getStaff_id() {
		return staff_id;
	}

	/** 员工ID */
	public void setStaff_id(Long staff_id) {
		this.staff_id = staff_id;
	}

	public DictionaryShopEntity getLevelEntity() {
		return levelEntity;
	}

	public void setLevelEntity(DictionaryShopEntity levelEntity) {
		this.levelEntity = levelEntity;
	}

	/** 头像路径 */
	public String getIcon_url() {
		return icon_url;
	}

	/** 头像路径 */
	public void setIcon_url(String icon_url) {
		this.icon_url = icon_url;
	}

	/** 启用状态Y启用N停用 */
	public String getState() {
		return state;
	}

	/** 启用状态Y启用N停用 */
	public void setState(String state) {
		this.state = state;
	}

	public String getBuilt_in() {
		return built_in;
	}

	public void setBuilt_in(String built_in) {
		this.built_in = built_in;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	/** 所属组织机构 */
	public Long getOrg_id() {
		return org_id;
	}

	/** 所属组织机构 */
	public void setOrg_id(Long org_id) {
		this.org_id = org_id;
	}

	/** 企业会员ID */
	public Long getCompany_org_id() {
		return company_org_id;
	}

	/** 企业会员ID */
	public void setCompany_org_id(Long company_org_id) {
		this.company_org_id = company_org_id;
	}
	public List<ModuleEntity> getModuleEntitysList() {
		return modulesList;
	}

	public void setModuleEntitysList(List<ModuleEntity> modulesList) {
		this.modulesList = modulesList;
	}

	public String getOrg_name() {
		return org_name;
	}

	public void setOrg_name(String org_name) {
		this.org_name = org_name;
	}

	public String getCreate_user_name() {
		return create_user_name;
	}

	public void setCreate_user_name(String create_user_name) {
		this.create_user_name = create_user_name;
	}

	public List<RoleEntity> getRolesList() {
		return rolesList;
	}

	public void setRolesList(List<RoleEntity> rolesList) {
		this.rolesList = rolesList;
	}

	public List<ModuleEntity> getModulesList() {
		return modulesList;
	}

	public void setModulesList(List<ModuleEntity> modulesList) {
		this.modulesList = modulesList;
	}

	public OrganizationEntity getOrganizationEntity() {
		return organizationEntity;
	}

	public void setOrganizationEntity(OrganizationEntity organizationEntity) {
		this.organizationEntity = organizationEntity;
	}

}